from pymysql import Connect

def connect():
    conn = Connect(user="root",
                   password="123456",
                   host="127.0.0.1",
                   database="ks_table",
                   port=3306,
                   charset="utf8", )
    return conn


